package tech.xiaozai.rbac.security;

import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.security.core.GrantedAuthority;

/**
 * @author xiaozai
 * @version 1.0
 * @date 2020-09-23 10:36
 */
@ToString
@Accessors(chain = true)
public class MyGrantedAuthority implements GrantedAuthority {

    @Setter
    private String authority;
    @Override
    public String getAuthority() {
        return authority;
    }
}
